package com.sunzm.dynamic_rule.pojo;

import org.kie.api.runtime.KieSession;

/**
 * 用于封装放入state中的规则相关信息
 *
 * @author Administrator
 * @version 1.0
 * @date 2021-07-19 0:29
 */
public class RuleStateBean {
    private String ruleName;
    private KieSession kieSession;
    private RuleParam ruleParam;
    private String ruleType;
    private String routerClass;
    private String cntSqls;
    private String seqSqls;

    public RuleStateBean() {
    }

    public RuleStateBean(String ruleName, KieSession kieSession, RuleParam ruleParam, String ruleType,
                         String routerClass, String cntSqls, String seqSqls) {
        this.ruleName = ruleName;
        this.kieSession = kieSession;
        this.ruleParam = ruleParam;
        this.ruleType = ruleType;
        this.routerClass = routerClass;
        this.cntSqls = cntSqls;
        this.seqSqls = seqSqls;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public KieSession getKieSession() {
        return kieSession;
    }

    public void setKieSession(KieSession kieSession) {
        this.kieSession = kieSession;
    }

    public RuleParam getRuleParam() {
        return ruleParam;
    }

    public void setRuleParam(RuleParam ruleParam) {
        this.ruleParam = ruleParam;
    }

    public String getRuleType() {
        return ruleType;
    }

    public void setRuleType(String ruleType) {
        this.ruleType = ruleType;
    }

    public String getRouterClass() {
        return routerClass;
    }

    public void setRouterClass(String routerClass) {
        this.routerClass = routerClass;
    }

    public String getCntSqls() {
        return cntSqls;
    }

    public void setCntSqls(String cntSqls) {
        this.cntSqls = cntSqls;
    }

    public String getSeqSqls() {
        return seqSqls;
    }

    public void setSeqSqls(String seqSqls) {
        this.seqSqls = seqSqls;
    }

    @Override
    public String toString() {
        return "RuleStateBean{" +
                "ruleName='" + ruleName + '\'' +
                ", kieSession=" + kieSession +
                ", ruleParam=" + ruleParam +
                ", ruleType='" + ruleType + '\'' +
                ", routerClass='" + routerClass + '\'' +
                ", cntSqls='" + cntSqls + '\'' +
                ", seqSqls='" + seqSqls + '\'' +
                '}';
    }
}
